package com.zp.demo.repush.enums;


import java.util.EnumSet;

/**
 * @author:是否枚举
 * @date: 2018/5/7
 */
public enum RePushType {
    /**
     */
    JS_PUSH("repayPlanService4MyInvoke","及时"),
    /**
     */
    YS_PUSH("repayPlanService4Xd","延时"),
    DS_PUSH("repayPlanService4MyInvoke","定时");



    private String beanId;
    private String desc;

    RePushType(final String beanId, final String desc) {
        this.beanId = beanId;
        this.desc = desc;
    }
    public static RePushType getRePushServiceBeanEnum(String beanId){
        EnumSet<RePushType> weekSet = EnumSet.allOf(RePushType.class);
        for (RePushType enumV : weekSet) {
            if(enumV.getBeanId().equals(beanId)){
                return enumV;
            }
        }
        return null;
    }

    public String getBeanId() {
        return this.beanId;
    }

    public String getDesc(){
        return this.desc;
    }
}
